import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'
import Login from '../views/Login.vue'
import Empreg from '../views/Emp/Empreg.vue'
import BasicEmpReg from '../components/BasicEmpReg.vue'
import MyCarousel from '../test/MyCarousel .vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/mc1',
    name: 'MyCarousel',
    component: MyCarousel
  },
  {
    path: '/login',
    name: 'Login',
    component: Login
  },
  {
    path: '/reg',
    name: 'Empreg',
    component: Empreg,
    children: [
      {
        path: '/basic',
        name: 'BasicEmpReg',
        component: BasicEmpReg
      }
    ]
  },
  {
    path: '/',
    name: 'Home',
    component: Home
  }
]

const router = new VueRouter({
  routes
})

export default router
